﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeRedis;
using Microsoft.Extensions.Configuration;

namespace Common.Redis
{
    public class RedisHelper
    {
        private readonly RedisClient cli;

        public RedisHelper(IConfiguration config)
        {
            cli = new RedisClient(config["Redis:ConnectionString"]);
            cli.Notice += (s, e) => Console.WriteLine(e.Log);
        }

    }
}
